package ui.model;

import java.util.List;

import util.StringUtils;

/**
 * Created by chenjian on 2019/12/5
 */

public class RewardsTrainTopBean {

    /**
     * current : 1
     * pages : 1
     * records : [{"amount":1000,"businessTime":1575527798000,"createTime":1575527799000,"customerId":169,"entityName":"魏玉珍","flowNo":"09682e9a-eabc-4918-8fca-8709ed4c3cd4","id":261,"list":[{"buyCount":10,"buyerId":1107,"buyerName":"杨榜","createTime":1575527662000,"creditSign":1,"flowNo":"09682e9a-eabc-4918-8fca-8709ed4c3cd4","id":66,"orderId":2218,"parentId":1090,"updateTime":1575527796000},{"buyCount":10,"buyerId":1113,"buyerName":"李鹏","createTime":1575527800000,"creditSign":1,"flowNo":"09682e9a-eabc-4918-8fca-8709ed4c3cd4","id":67,"orderId":2219,"parentId":1090,"updateTime":1575527800000}],"memberAmount":null,"sn":"","snCount":10,"status":1,"type":3,"updateTime":1575527799000}]
     * size : 10
     * total : 1
     */

    private int current;
    private int pages;
    private int size;
    private int total;
    private List<RecordsBean> records;

    public int getCurrent() {
        return current;
    }

    public void setCurrent(int current) {
        this.current = current;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<RecordsBean> getRecords() {
        return records;
    }

    public void setRecords(List<RecordsBean> records) {
        this.records = records;
    }

    public static class RecordsBean extends BaseBean {
        /**
         * amount : 1000.0
         * businessTime : 1575527798000
         * createTime : 1575527799000
         * customerId : 169
         * entityName : 魏玉珍
         * flowNo : 09682e9a-eabc-4918-8fca-8709ed4c3cd4
         * id : 261
         * list : [{"buyCount":10,"buyerId":1107,"buyerName":"杨榜","createTime":1575527662000,"creditSign":1,"flowNo":"09682e9a-eabc-4918-8fca-8709ed4c3cd4","id":66,"orderId":2218,"parentId":1090,"updateTime":1575527796000},{"buyCount":10,"buyerId":1113,"buyerName":"李鹏","createTime":1575527800000,"creditSign":1,"flowNo":"09682e9a-eabc-4918-8fca-8709ed4c3cd4","id":67,"orderId":2219,"parentId":1090,"updateTime":1575527800000}]
         * memberAmount : null
         * sn :
         * snCount : 10
         * status : 1
         * type : 3
         * updateTime : 1575527799000
         */

        private String amount;
        private long businessTime;
        private long createTime;
        private int customerId;
        private String entityName;
        private String flowNo;
        private int id;
        private Object memberAmount;
        private String sn;
        private int snCount;
        private int status;
        private int type;
        private long updateTime;
        private List<ListBean> list;

        public String getAmount() {
            return StringUtils.isEmpty(amount) ? "0" : amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public long getBusinessTime() {
            return businessTime;
        }

        public void setBusinessTime(long businessTime) {
            this.businessTime = businessTime;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public int getCustomerId() {
            return customerId;
        }

        public void setCustomerId(int customerId) {
            this.customerId = customerId;
        }

        public String getEntityName() {
            return returnInfo(entityName);
        }

        public void setEntityName(String entityName) {
            this.entityName = entityName;
        }

        public String getFlowNo() {
            return flowNo;
        }

        public void setFlowNo(String flowNo) {
            this.flowNo = flowNo;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public Object getMemberAmount() {
            return memberAmount;
        }

        public void setMemberAmount(Object memberAmount) {
            this.memberAmount = memberAmount;
        }

        public String getSn() {
            return sn;
        }

        public void setSn(String sn) {
            this.sn = sn;
        }

        public int getSnCount() {
            return snCount;
        }

        public void setSnCount(int snCount) {
            this.snCount = snCount;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public long getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(long updateTime) {
            this.updateTime = updateTime;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean extends BaseBean {
            /**
             * buyCount : 10
             * buyerId : 1107
             * buyerName : 杨榜
             * createTime : 1575527662000
             * creditSign : 1
             * flowNo : 09682e9a-eabc-4918-8fca-8709ed4c3cd4
             * id : 66
             * orderId : 2218
             * parentId : 1090
             * updateTime : 1575527796000
             */

            private String buyCount;
            private int buyerId;
            private String buyerName;
            private long createTime;
            private int creditSign;
            private String flowNo;
            private int id;
            private int orderId;
            private int parentId;
            private long updateTime;

            public String getBuyCount() {
                return returnInfo(buyCount);
            }

            public void setBuyCount(String buyCount) {
                this.buyCount = buyCount;
            }

            public int getBuyerId() {
                return buyerId;
            }

            public void setBuyerId(int buyerId) {
                this.buyerId = buyerId;
            }

            public String getBuyerName() {
                return returnInfo(buyerName);
            }

            public void setBuyerName(String buyerName) {
                this.buyerName = buyerName;
            }

            public long getCreateTime() {
                return createTime;
            }

            public void setCreateTime(long createTime) {
                this.createTime = createTime;
            }

            public int getCreditSign() {
                return creditSign;
            }

            public void setCreditSign(int creditSign) {
                this.creditSign = creditSign;
            }

            public String getFlowNo() {
                return flowNo;
            }

            public void setFlowNo(String flowNo) {
                this.flowNo = flowNo;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getOrderId() {
                return orderId;
            }

            public void setOrderId(int orderId) {
                this.orderId = orderId;
            }

            public int getParentId() {
                return parentId;
            }

            public void setParentId(int parentId) {
                this.parentId = parentId;
            }

            public long getUpdateTime() {
                return updateTime;
            }

            public void setUpdateTime(long updateTime) {
                this.updateTime = updateTime;
            }
        }
    }
}
